package com.zhao.gulistore.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
* @author xiaoZhao
* @date 2023/3/8 21:00
* @param
* @return
 *  远程调用其他服务
 *  1.引入open-feign依赖
 *  2.编写接口，告诉SpringCloud需要调用远程服务 注解：@FeignClient("需要调用的服务名称")
 *  3.接口中声明哪个方法是调用远程服务的请求
 *  4.开启远程调用功能
**/
@EnableFeignClients(basePackages = "com.zhao.gulistore.member.feign")
@EnableDiscoveryClient
@MapperScan("com.zhao.gulistore.member.dao")
@SpringBootApplication
public class GulistoreMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulistoreMemberApplication.class, args);
    }

}
